gtkmain: Release the active state on GDK_GRAB_BROKEN
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 12 May 2020 08:41:54 +0000 (10:41 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 12 May 2020 15:39:54 +0000 (17:39 +0200)
This is handled internally here, but misses broken grabs. The active
state should be dropped just as if the button were released.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2665
gtk/gtkmain.c

index b621ed4f40b785c7fdb9aa6d93abd302e5cd0da9..aad1e0b68315090f05ca1f02155041af355a281d 100644 (file)
@@ -1621,6 +1621,7 @@ handle_pointing_event (GdkEvent *event)
       target = gtk_window_lookup_effective_pointer_focus_widget (toplevel,
                                                                  device,
                                                                  sequence);
+      set_widget_active_state (target, TRUE);
       break;
     default:
       g_assert_not_reached ();